/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cluelessserver;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.ArrayList;

/**
 *
 * @author dcain
 */
public class Connection extends Thread{
    Socket socket = null;
    public PrintWriter out; 
    public BufferedReader in;
    String output;
    String inLine;
    ArrayList<String> input;
    Boolean isLooking = true;
    Boolean isInPool = false;
    
    public Connection(Socket sock) throws IOException{
        socket = sock;
        out = new PrintWriter(socket.getOutputStream(), true);
        in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
        if(!isInPool){
            CluelessServer.addToPool(this);                 
        }
    }
}
